package com.stary.springmvc.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description:
 * @author: Mr.Guan
 * @create: 2023-09-29 19:27
 **/
@Controller
@RequestMapping(value = "/computer")
public class HomeWorkServlet {
    @PostMapping(value ="/message")
    public String getMessage(String cname,String price,String nums){
        System.out.println("cname = " + cname);
        System.out.println("price = " + price);
        System.out.println("nums = " + nums);
        return "success";
    }
}
